package net.pm.core.web;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@Scope("request")
@RequestMapping("/error/")
public class ErrorController extends BaseController{
	
	/**
	 * 验证码输入错误
	 * @return
	 */
	@RequestMapping(value="kaptcha",method=RequestMethod.GET)
	public String kaptcha(){
		super.setSessionMessage("验证码输入,错误,请查正!");
		return "error/kaptcha";
	}
	@RequestMapping(value="nonpower",method=RequestMethod.GET)
	public String nonpower(){
		super.setSessionMessage("对不起,当前您没有权限!");
		return "error/nonpower";
	}
}
